<<<<<<< HEAD
package com.yootk.client;
import java.net.*;

public class Y3 {
    public static void main(String[] args) throws Exception {
        DatagramSocket client = new DatagramSocket(9999);    // 客户端监听端口
        byte data[] = new byte[1024];    // 接收信息
        DatagramPacket packet = new DatagramPacket(data, data.length); // 接收数据报
        System.out.println("【UDPClient】客户端等待服务器端发送消息 ………");
        client.receive(packet);    // 消息接收
        System.out.println("【UDPClient】接收到消息，消息内容为：" +
                new String(data, 0, packet.getLength()));
        client.close();    // 关闭客户端
=======
<<<<<<< HEAD
import java.util.*;
public class Y3 {
    public static void main(String[] args) throws Exception {
        Map<Integer,String> map=new HashMap<>();
        System.out.println("【未发生替换】"+map.put(1, "book.yootk.com"));
                System.out.println("【已发生替换】"+map.put(1, "www.yootk.com"));
                        System.out.println("【未发生替换】"+map.put(2, "edu.yootk.com"));
                                System.out.println("【Map数据】"+map);
=======
import java.io.*;
public class Y3 {
    public static void main(String[] args) throws Exception {
        File file = new File("E:" + File.separator + "muyan" + File.separator + "vip" + File.separator + "yootk.txt");
        if (!file.getParentFile().exists()) {
            file.getParentFile().mkdirs();
        }
        try(Writer out=new FileWriter(file)){
            out.write("沐言科技：www.yootk.com\n");
            out.append("李华高性能：edu.yootk.com");
        }catch (Exception e){}
>>>>>>> f33091f7d3c9fad97e415e3fe7e0daaa9a183f56
>>>>>>> 4442d0ff08afd6a675d4f7f09aa88fa83a0c21ef
    }
}
